function findByPath(root,path){
  const arr=path.split('.')
  let r=root
  arr.forEach(element => {
    r=r[element]
  });
  return r
}

export default findByPath